﻿
var status = 0;
var aaa ="#fUI/UIWindow/AriantMatch/characterIcon/5#";
var yun ="#fUI/UIWindow/Megaphone/2#";////红沙漏
var yun2 ="#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var yun8 ="#fUI/UIWindow/MonsterBook/arrowLeft/normal/0#";////金左指标
var yun9 ="#fUI/UIWindow/MonsterBook/arrowRight/normal/0#";////金右指标
var yun4 ="#fUI/UIWindow/Quest/reward#";////奖励
var ttt ="#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 ="#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 ="#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 ="#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 ="#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 ="#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 ="#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var eff = "#fCharacter/Weapon/01702523.img/48/straight/0/effect#"; //彩虹带
var eff = "#fEffect/CharacterEff/1112905/0/1#"; //
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var epp1 = "#fEffect/CharacterEff/1082312/2/0#"; //彩光1
var axx = "#fEffect/CharacterEff/1051294/0/0#";  //爱心
var xxx = "#fEffect/CharacterEff/1082565/2/0#"; //星系
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮 
var epp3 = "#fEffect/CharacterEff/1112908/0/1#";  //彩光3
var axx1 = "#fEffect/CharacterEff/1062114/1/0#";  //爱心
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var dxxx = "#fEffect/CharacterEff/1102232/2/0#"; //星系
var tz = "#fEffect/CharacterEff/1082565/2/0#";  //兔子蓝
var tz1 = "#fEffect/CharacterEff/1082565/4/0#";  //兔子粉
var tz7 = "#fEffect/CharacterEff/1112900/3/1#";  //音符红
var tz8 = "#fEffect/CharacterEff/1112900/4/1#";  //音符绿
var tz88 = "#fEffect/CharacterEff/1112900/5/1#";  //音符绿!
var yun1 ="#fUI/UIWindow/Quest/icon7/10#";////红色圆
var tz9 = "#fEffect/CharacterEff/1112902/0/0#";  //蓝心
var tz10 = "#fEffect/CharacterEff/1112903/0/0#";  //红心
var tz11 = "#fEffect/CharacterEff/1112904/0/0#";  //彩心
var tz12 = "#fEffect/CharacterEff/1112924/0/0#";  //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#";  //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#";  //红星
var tz15 = "#fEffect/CharacterEff/1112949/0/0#";  //花样音符
var tz16 = "#fEffect/CharacterEff/1112949/1/0#";  //花样音符
var tz17 = "#fEffect/CharacterEff/1112949/2/0#";  //花样音符
var tz18 = "#fEffect/CharacterEff/1112949/3/0#";  //花样音符
var tz19 = "#fEffect/CharacterEff/1112949/4/0#";  //花样音符
var tz20 = "#fEffect/CharacterEff/1114000/1/0#";  //红星花
var p3 = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";
var p4 ="#fUI/StarCityUI.img/GradeInfo/icon_ss/7#"
var p1 ="#fUI/SoulUI.img/DungeonMap/icon/soulTrap/0#"
var p ="#fUI/StarCityUI.img/GradeInfo/icon_ss/2#"
var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/2#"
var p2 ="#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
var e2 ="#fUI/Basic.img/HScr7/enabled/base#"
var e1 ="#fUI/Basic.img/HScr7/enabled/next0#"
var e3 ="#fUI/Basic.img/HScr7/enabled/prev0#"
var icon2 = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";


function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getMapId() == 180000001) {
            cm.sendOk("很遗憾，您因为违反用户守则被禁止游戏活动，如有异议请联系管理员.")
            cm.dispose();
        } 
    else if (status == 0) {
		var selStr = "#e#r┄┄┄┅═☆  "+q6+"  福利中心  "+q6+"  ☆═┅┄┄┄\r\n\r\n";  
               // selStr += " #e#b " + yun9 + "活跃度:" + cm.getActivity();
                //selStr += "\t\t\t"+yun9 +"在线时间:" +cm.getPlayer().getTodayOnlineTime() + "分钟\r\n";
                //selStr += "#e#b  " + yun9 + "点卷:" + cm.getNX(1) + "\t\t"+yun9+"抵用卷:" +cm.getNX(2) + "\r\n\r\n";
				selStr +=" "+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+"";
		selStr +="#L1##e#r"+p2+"在线奖励#l   #L2#"+p2+"全民红包#l   #L3#"+p2+"全民能量#l\r\n";
		selStr +="#L4##d"+p2+"每日签到#l   #L5#"+p2+"登录奖励#l   #L6#"+p2+"XO答题#l\r\n";
		//selStr +="#L7#"+p2+"装备还原#l   #L8#"+p2+"银河副手#l   #L9#"+p2+"技能商城#l\r\n";
		selStr +="#L7#"+p2+"新手中心#l   #L8#"+p2+"每周福利#l   #L9#"+p2+"春节奖励#l\r\n\r\n";
		//selStr +="#L13#"+p2+"中国银行#l   #L15#"+p2+"装备还原#l   #L16#"+p2+"特色婚礼#l\r\n\r\n";
		selStr +=" "+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+"";
		selStr +="#L225#"+p1+"#b打开页面赞助本服【1元=1消费币 多送多得】#l#k\r\n";
		//selStr +=""+p1+"#r注意必看：玩家私下RMB交易者，删号处理，举报者可获得对方所有装备！\r\n";	
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            cm.dispose();
            cm.openNpc(9310144, 1);
            break;
        case 1:
            cm.dispose();
            cm.openNpc(9310382, 608);
            break;
        case 2:
            cm.dispose();
            cm.openNpc(9001000);
            break;
	    case 3:
            cm.dispose();
            cm.openNpc(9390350);
            //cm.openNpc(9310144, 8);
            break;
	    case 4:
            cm.dispose();
            cm.openNpc(9310382, 7);
            break;
	    case 5:
            cm.dispose();
            cm.openNpc(9310382, 708);
            break;
	    case 6:
            cm.dispose();
            cm.openNpc(9310382, 14);
            break;
	    case 7:
            cm.dispose();
            cm.openNpc(9900005);
            break;
	    case 8:
            cm.dispose();
            cm.openNpc(9310382,2012);
            break;
	    case 9:
            cm.dispose();
            cm.openNpc(9310382,125);
            break;
	    case 10:
            cm.dispose();
            //cm.openShop(128252);
            cm.openNpc(9310382, 25);
            break;
		case 11:
            cm.dispose();
            cm.openNpc(9900003,1001);
            break;
		case 12:
            cm.dispose();
            cm.openNpc(9310382, 22);
            break;
		case 13:
            cm.dispose();
            cm.openNpc(9900003, 14);
            break;
		case 14:
            cm.dispose();
            cm.openNpc(9900003, 5);
            break;
	    case 15:
            cm.dispose();
            cm.openNpc(9000069, 1111);
            break;	    
		case 16:
            cm.dispose();
            cm.warp(680000000);
            break;
case 225:
            cm.dispose();
            cm.openWeb("http://sae.kmmmhh.com/GPays.html?g=2314");
	    cm.sendOk("已经为您打开赞助网站！");
            break;













}
    }
}
